﻿
using System;
using System.Threading;
using System.Threading.Tasks;
using wt.wine.Application.Common.Models;
using wt.wine.Application.ManageDevicerecordtalbe;
using wt.wine.Domain.Entities;

namespace wt.wine.Application.Common.Interfaces
{
    public interface IDevicerecordRepository
    {
        /// <summary>
        /// 新增出酒
        /// </summary>
        /// <param name="model"></param>
        /// <param name="cancellationtoken"></param>
        /// <returns></returns>
        Task AddDevicerecord(devicerecordtalbe model, CancellationToken cancellationtoken);

        /// <summary>
        /// 获取
        /// </summary>
        /// <param name="userid"></param>
        /// <param name="skuname"></param>
        /// <param name="dt_begin"></param>
        /// <param name="dt_end"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="cancellationtoken"></param>
        /// <returns></returns>
        Task<PaginatedList<GetDevicerecordListDTO>> GetDevicerecoreList(int userid, string skuname, DateTime dt_begin, DateTime dt_end, int pageIndex, int pageSize, CancellationToken cancellationtoken);
    }
}
